package collage.aminpage;


import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class TopPanel extends JPanel {
	

	
	public TopPanel() {
		JPanel panelbox = new JPanel();
		panelbox.setBounds(5, 5, 1000, 399);
		panelbox.setLayout(new BoxLayout( panelbox, BoxLayout.Y_AXIS ));
		panelbox.setPreferredSize(new Dimension( 1024, 399 ));
		
		
		JPanel tool_panel = new JPanel();
		
		JButton check1 = new JButton("툴바");
		tool_panel.add( check1 );
		JButton check2 = new JButton("확인");
		tool_panel.add( check2 );
		JButton check3 = new JButton("창");
		tool_panel.add( check3 );
		
		tool_panel.setVisible(true);
		
		JPanel menu_panel = new JPanel();
		
		JButton cgStu_btn = new JButton("학사정보 관리");
		menu_panel.add( cgStu_btn );
		JButton cgEmpo_btn = new JButton("교직원 관리");
		menu_panel.add( cgEmpo_btn );
		JButton btnAdmin = new JButton("Admin");
		menu_panel.add( btnAdmin );
		
		panelbox.add( menu_panel );
		panelbox.add( tool_panel );
		
		panelbox.setVisible(true);
		
			
	}
	
	private void makePanelBox(){
		JPanel panelbox = new JPanel();
		panelbox.setBounds(5, 5, 1000, 399);
		panelbox.setLayout(new BoxLayout( panelbox, BoxLayout.Y_AXIS ));
		panelbox.setPreferredSize(new Dimension( 1024, 399 ));
		
		
		JPanel tool_panel = new JPanel();
		
		JButton check1 = new JButton("툴바");
		tool_panel.add( check1 );
		JButton check2 = new JButton("확인");
		tool_panel.add( check2 );
		JButton check3 = new JButton("창");
		tool_panel.add( check3 );
		
		tool_panel.setVisible(true);
		
		JPanel menu_panel = new JPanel();
		
		JButton cgStu_btn = new JButton("학사정보 관리");
		menu_panel.add( cgStu_btn );
		JButton cgEmpo_btn = new JButton("교직원 관리");
		menu_panel.add( cgEmpo_btn );
		JButton btnAdmin = new JButton("Admin");
		menu_panel.add( btnAdmin );
		
		panelbox.add( menu_panel );
		panelbox.add( tool_panel );
		
		panelbox.setVisible(true);
		
	}
	
	
/*	private  JPanel makeToolPanel(){
		JPanel tool_panel = new JPanel();
		JButton cgStu_btn = new JButton("툴바");
		tool_panel.add( cgStu_btn );
		JButton cgEmpo_btn = new JButton("확인");
		tool_panel.add( cgEmpo_btn );
		JButton btnAdmin = new JButton("창");
		tool_panel.add( btnAdmin );
		return tool_panel;
		
		
	}
	
	
	private JPanel makeMenuPanel(){
		JPanel menu_panel = new JPanel();
		
		JButton cgStu_btn = new JButton("학사정보 관리");
		menu_panel.add( cgStu_btn );
		JButton cgEmpo_btn = new JButton("교직원 관리");
		menu_panel.add( cgEmpo_btn );
		JButton btnAdmin = new JButton("Admin");
		menu_panel.add( btnAdmin );
		
		return menu_panel;
		
	}*/
	
	

	
}//class
